package Tests;
import static org.junit.Assert.*;

import game.Card;
import game.server.EvalHand;

import java.util.ArrayList;

import org.junit.Test;
public class Tests {
	private ArrayList<Card> list = new ArrayList<Card>();
	@Test
	/**
	 * Kaspar testis
	 */
	public void evalHandTestTwoPair(){
		
		list.add(new Card("Spades", 4));
		list.add(new Card("Diamonds", 5));
		list.add(new Card("Hearts", 4));
		list.add(new Card("Clubs", 5));
		assertEquals(360, new EvalHand().evaluate(list));
	}
	/**
	 *kaspar testis veel
	 */
	@Test
	public void evalHandThreeOfaKind(){
		list.clear();
		list.add(new Card("Spades", 4));
		list.add(new Card("Diamonds", 4));
		list.add(new Card("Clubs", 4));
		list.add(new Card("Clubs", 5));
		list.add(new Card("Diamonds", 10));
		list.add(new Card("Diamonds", 12));
		assertEquals(2172, new EvalHand().evaluate(list));
	}
}
